package com.todod.controller;

import java.io.IOException;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.todod.entity.ResultData;
import com.todod.service.EsService;

@RestController
@RequestMapping("/es")
public class EsController {
	@Autowired
	private EsService esService;

	@RequestMapping("/delete")
	public ResultData delete() throws IOException {
		esService.deleteAll();
		return ResultData.success();
	}

}
